home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Content⁄Frame⁄Part question < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Content/Frame/Part question
  2. Sent:        5/20/96 9:48 AM
  3. Received:    5/22/96 8:31 AM
  4. From:        Hutchings Software Development, hsd@earthlink.net
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Hi,
  9.  
  10. I've got a question about how the Content class should work with Frames and
  11. Parts.
  12.  
  13. Here's the scenario. The content of a part I'm trying to build is basically
  14. text that the user edits in a FW_CEditText view. I keep an FW_CString in my
  15. Content class, but it needs to be updated before externalizing. So I would
  16. guess I should overide FW_CPart::ExternalizeContent() to do the
  17. synchronization, then call inherited::ExternalizeContent(), right?
  18.  
  19. Is that the right idiom for "just in time" content updating, where it would
  20. be too expensive and unnecessary for a frame to adjust the content with
  21. each change the user makes? Or have I overlooked something you put in ODF
  22. for R1?
  23.  
  24. If so, could a general UpdateContent() method be put in the FW_CPart class
  25. to handle things like content updating before externalization, apple event
  26. processing, linking, etc.?
  27.  
  28.  
  29. Brad
  30.  
  31.  
  32. Richard B. "Brad" Hutchings
  33. General Partner,
  34. Hutchings Software Development
  35.  
  36. hsd@earthlink.net
  37.